<?php
	include_once 'config/common.php';

	//页面标题
	$smarty->assign("_title",$_title);

	//主导航
	$smarty->assign("_nav",$_nav);

	//会员登录id
	$user_id=$_COOKIE['user_id'];
	$smarty->assign("user_id",$user_id);
	
	//退出登录
	if($_GET['action']=='outLogin'){
		setcookie("user_id");
		echo 1;
		exit();
	}
	
	//会员信息
	$userc=new user();
	if($user_id!=''){
		$user=$userc->userInfo($user_id);
		$smarty->assign("user",$user);
	}
	


?>